<template>
  <div>
    <MyProduct
      title="好兄弟卖腰子"
      info="十块钱一颗，十五块钱两颗"
      :value="price"
      @input="price = $event"
    />
    <MyProduct
      title="好兄弟卖腰子"
      info="十块钱一颗，十五块钱两颗"
      v-model="price"
    />
  </div>
</template>

<script>
import MyProduct from "./components/MyProduct.vue";
export default {
  components: {
    MyProduct,
  },
  data() {
    return {
      price: 10,
    };
  },
};
</script>

<style scoped>
</style>